Skip to content

Conversation

shinout
Copy link

@shinout shinout commented Feb 8, 2016

fixes #112

In transform functions,

module.exports = function (file, opts) {
    console.log(opts.packageDir);
 };

opts.packageDir is the directory where package.json is located. It's optional and doesn't affect to transforms taking packageDir option.

@shinout shinout closed this Jun 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pass pkg.__dirname to transform functions
1 participant